package com.sheepone.distributor.autoconfigure;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author Miss.杨
 * @description
 * @since 2023-12-07 22:04
 */
@ConfigurationProperties(prefix = "distributor.distributor-line")
public class DistributorLineConfig {
    // 只做转发 没必要另外分配线程池 所以没必要加上对于线程池的配置
    private String name = "Distributor";
    private int size = 1024;
    private int handlerNum = 2;
    private int keepAliveTime = 60;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getHandlerNum() {
        return handlerNum;
    }

    public void setHandlerNum(int handlerNum) {
        this.handlerNum = handlerNum;
    }


    public int getKeepAliveTime() {
        return keepAliveTime;
    }

    public void setKeepAliveTime(int keepAliveTime) {
        this.keepAliveTime = keepAliveTime;
    }
}


